package com.km.wskj.itmonitor.pager.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;

import com.km.wskj.itmonitor.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class TemAndHumidityActivity extends AppCompatActivity {

    @BindView(R.id.tem_listview)
    ListView temListview;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tem_and_humidity);
        ButterKnife.bind(this);
        InitData();

    }

    private void InitData() {

    }

    @OnClick(R.id.tem_back)
    public void onClick() {
        finish();
    }
    public void getKeyBufferHitRate() {
//        Retrofit retrofit = new Retrofit.Builder()
//                .baseUrl(LApplication.getInstance().Url)
//                //增加返回值为String的支持
//                .addConverterFactory(ScalarsConverterFactory.create())
//                //增加返回值为Gson的支持(以实体类返回)
//                .addConverterFactory(GsonConverterFactory.create())
//                .build();
//
//        ApiService apiService = retrofit.create(ApiService.class);//这里采用的是Java的动态代理模式
//        Call<String> call = apiService.getKeyBufferHitRate("getKeyBufferHitRate", rows.getDb_id(), rows.getIp());
//        call.enqueue(new Callback<String>() {
//            @Override
//            public void onResponse(Call<String> call, Response<String> response) {
//
//                dataFlowThree.setProgress(Double.parseDouble(response.body()));
//                getQueryCacheHitRate();
//            }
//
//            @Override
//            public void onFailure(Call<String> call, Throwable t) {
//
//            }
//        });
    }
}
